package com.cn.hu.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Contract entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "contract", catalog = "huarui")
public class Contract implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer contractNumber;
	private String name;
	private String fileName;
	private String filePath;
	private Double price;
	private Integer status;
	private Timestamp createDate;
	private Timestamp modifyDate;
	private String bak;

	// Constructors

	/** default constructor */
	public Contract() {
	}

	/** minimal constructor */
	public Contract(Timestamp createDate, Timestamp modifyDate) {
		this.createDate = createDate;
		this.modifyDate = modifyDate;
	}

	/** full constructor */
	public Contract(Integer contractNumber, String name, String fileName,
			String filePath, Double price, Integer status,
			Timestamp createDate, Timestamp modifyDate, String bak) {
		this.contractNumber = contractNumber;
		this.name = name;
		this.fileName = fileName;
		this.filePath = filePath;
		this.price = price;
		this.status = status;
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.bak = bak;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "contract_number")
	public Integer getContractNumber() {
		return this.contractNumber;
	}

	public void setContractNumber(Integer contractNumber) {
		this.contractNumber = contractNumber;
	}

	@Column(name = "name", length = 100)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "file_name", length = 100)
	public String getFileName() {
		return this.fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	@Column(name = "file_path", length = 200)
	public String getFilePath() {
		return this.filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	@Column(name = "price", precision = 10)
	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "create_date", nullable = false, length = 19)
	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	@Column(name = "modify_date", nullable = false, length = 19)
	public Timestamp getModifyDate() {
		return this.modifyDate;
	}

	public void setModifyDate(Timestamp modifyDate) {
		this.modifyDate = modifyDate;
	}

	@Column(name = "bak", length = 100)
	public String getBak() {
		return this.bak;
	}

	public void setBak(String bak) {
		this.bak = bak;
	}

}